use axum::Router;
use axum::routing;
use std::sync::Arc;

use crate::AppService;
use crate::handlers::auth::{index, login, refresh_token, register};

pub fn get_routes() -> Router<Arc<AppService>> {
    Router::new()
        .route("/", routing::get(index))
        .route("/register", routing::post(register))
        .route("/login", routing::post(login))
        .route("/refreshToken", routing::post(refresh_token))
}
